package com.bdqn.service.impl;
import com.bdqn.service.PasswordService;
import org.apache.shiro.crypto.hash.Md5Hash;
public class PasswordServiceImpl implements PasswordService {
    @Override
    public String encryptPassword(Object plaintextPassword) throws IllegalArgumentException {
        String salt="czkt";
        Md5Hash md5Hash=new Md5Hash(plaintextPassword,salt,2);
        return md5Hash.toString();
    }
}
